﻿using oceanho.webapi.factory.httpCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace oceanho.webapi.factory.httpUtility
{
    /// <summary>
    /// 定义一个用于管理RunHandlerEvent对象的辅助类
    /// </summary>
    internal sealed class RunEventUtility
    {
        /// <summary>
        /// 创建RunHandlerEvent对象
        /// </summary>
        /// <returns></returns>
        internal static RunHandlerEvent CreateHandlerEvent()
        {
            return new RunHandlerEvent()
            {
                Handled = false,
                ActionName = string.Empty,
                ActionParameters = null,
                CustomAttributes = null
            };
        }

        /// <summary>
        /// 创建RunModuleEvent对象
        /// </summary>
        /// <returns></returns>
        internal static RunModuleEvent CreateModuleEvent()
        {
            return new RunModuleEvent() { Handled = false };
        }
    }
}
